package com.mcxx.modules.miniSalvation.family.dao.read;

import com.mcxx.modules.miniSalvation.family.dto.MemberAssetsDTO;
import com.mcxx.modules.miniSalvation.family.entity.MemberAssetsEntity;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface MemberAssetsReadDAO extends Ta404SupportMapper {


	List<MemberAssetsEntity> queryList(MemberAssetsEntity entity);


	List<MemberAssetsEntity> queryByFamilyIdAndType(@Param("familyId") String familyId, @Param("assetsTypeList") List<String> assetsTypeList);


	List<MemberAssetsDTO> queryListByFamilyId(@Param("familyId") String familyId, @Param("orderId") String orderId, @Param("assetsType") String assetsType);


	List<MemberAssetsEntity> queryListByFamilyIds(@Param("familyId") String familyId, @Param("orderId") String orderId);



	MemberAssetsEntity queryById(@Param("id") String id);


	int cntMemberAssets(MemberAssetsEntity memberAssetsEntity);


	Map<String, BigDecimal> sumMemberAssets(String familyId, String orderId);


	List<MemberAssetsEntity> selectInfoByFamilyId(String familyId);


	int cntOrderAssets(String orderId);


	List<MemberAssetsDTO> cntOrderAssetsList(List<String> orderIdList);


	List<MemberAssetsDTO> getMemberIncomeList(@Param("familyId") String familyId, @Param("orderId") String orderId, @Param("assetsType") String assetsType);

	String getAssetsRemark(@Param("familyId") String familyId, @Param("orderId") String orderId, @Param("assetsType") String assetsType);
}
